﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Security;
using HiCore.Extensions.UnitOfWork.EntityFramework.Domain;

namespace HiCore.WebApi.Example.DbContexts.DbEntity
{
    public class TestTable : AuditableEntityAggregateRoot// AggregateRoot
    {
        public int Id { get; set; }

        [Encrypted]
        public string Mobile { get; set; }
        //public SecureString Password { get; set; }
        public string Password { get; set; }
        public DateTime CreateTime { get; set; }

        public override object[] GetKeys()
        {
            return new object[] { Id };
        }
    }
}
